package name.sakanacatcher.repository;

import name.sakanacatcher.entity.Group;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface GroupRepository extends JpaRepository<Group,Integer> {
    Group getGroupByName(String name);

    Boolean existsByName(String name);

    List<Group> getGroupsByType(String type);

    List<Group> findAllByNameStartingWithOrNameEndingWith(String start,String end);

}
